package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 【请填写功能名称】对象 key_card
 *
 * @author ruoyi
 * @date 2023-10-09
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class KeyCard extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /** 门卡编号 */
    @Excel(name = "门卡编号")
    private String cardNumber;

    /** 类型 */
    @Excel(name = "类型")
    private String type;

    /** 类型 */
    @Excel(name = "员工姓名")
    private String name;

    /** 员工编号 */
    @Excel(name = "员工编号")
    private String eno;

    /** 生效时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生效时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /** 授权方式：永久还是临时 */
    @Excel(name = "授权方式：永久还是临时")
    private String empower;

    /** 开门使用记录 */
    @Excel(name = "开门使用记录")
    private String createId;
}
